package cn.iocoder.yudao.module.system.controller.admin.userassetscode.vo;

import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.alibaba.excel.annotation.ExcelProperty;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.time.LocalDateTime;

/**
 * 兑换码使用记录响应VO
 *
 * @author 系统
 */
@Schema(description = "管理后台 - 兑换码使用记录响应VO")
@Data
@ExcelIgnoreUnannotated
public class UserAssetsCodeUsageLogRespVO {

    @Schema(description = "主键ID", example = "1")
    @ExcelProperty("主键ID")
    private Long id;

    @Schema(description = "兑换码ID", example = "123")
    @ExcelProperty("兑换码ID")
    private Integer codeId;

    @Schema(description = "兑换码", example = "ABC123DEF")
    @ExcelProperty("兑换码")
    private String code;

    @Schema(description = "使用者用户ID", example = "456")
    @ExcelProperty("使用者用户ID")
    private Long userId;

    @Schema(description = "使用者用户名", example = "zhangsan")
    @ExcelProperty("使用者用户名")
    private String username;

    @Schema(description = "使用者IP", example = "192.168.1.100")
    @ExcelProperty("使用者IP")
    private String userIp;

    @Schema(description = "使用者User-Agent")
    @ExcelProperty("使用者User-Agent")
    private String userAgent;

    @Schema(description = "使用者设备信息")
    @ExcelProperty("使用者设备信息")
    private String deviceInfo;

    @Schema(description = "使用时间")
    @ExcelProperty("使用时间")
    private LocalDateTime usageTime;

    @Schema(description = "获得的资源信息")
    @ExcelProperty("获得的资源信息")
    private String assetsReceived;

    @Schema(description = "套餐信息")
    @ExcelProperty("套餐信息")
    private String changeName;

    @Schema(description = "客户信息")
    @ExcelProperty("客户信息")
    private String customerName;

    @Schema(description = "使用结果", example = "1")
    @ExcelProperty("使用结果")
    private Integer usageResult;

    @Schema(description = "失败原因")
    @ExcelProperty("失败原因")
    private String failureReason;

    @Schema(description = "链路追踪ID")
    @ExcelProperty("链路追踪ID")
    private String traceId;

    @Schema(description = "创建时间")
    @ExcelProperty("创建时间")
    private LocalDateTime createTime;

    @Schema(description = "更新时间")
    @ExcelProperty("更新时间")
    private LocalDateTime updateTime;
}